//
//  GRAddDevice.h
//  Smart
//
//  Created by XJYMAC on 16/11/2.
//  Copyright © 2016年 Gree Inc. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^GRConfigResultBlock)(NSDictionary *dict);

@class GRAddDevice;
@protocol GRConfigMangerDelegate <NSObject>
- (void)vc:(GRAddDevice *)vc;
@end

@interface GRConfigManger : NSObject


/**结束配网*/
- (void)stopConfig;

/**开始配网*/
- (void)startConfigWithSSID:(NSString *)SSID passWord:(NSString *)passWord  configTime:(CGFloat)configTime configResultBlock:(GRConfigResultBlock)configResultBlock;

/**配网成功的设备*/
@property(nonatomic,strong)NSMutableArray *macArray;
/**监听结束标志位*/
@property(nonatomic,assign)BOOL configmonitorOver;
/**代理属性*/
@property(nonatomic, weak) id<GRConfigMangerDelegate>  delegate;


@end
